// 微信投放 1 微信运营 2 抖音投放3 抖音运营4
export function onTableColums(type) {
  if (type == 1) {
    const defaultColumnList = [
      {
        content: '分组1',
        status: true,
        children: [
          { name: 'selection', content: '选择', status: true },
          { name: 'channel_name', content: '渠道名称', status: true },
          { name: 'id', content: '渠道ID', status: true },
          { name: 'media', content: '媒体', status: true },
          { name: 'advertiser_name', content: '账户', status: true },
          { name: 'promote_url', content: '推广路径', status: true },
          { name: 'promote_link', content: '推广链接', status: true },
          { name: 'ad_switch', content: '广告流量主', status: true },
          { name: 'player_switch', content: '官方播放器组件', status: true },
          { name: 'group_buy_switch', content: '拼团-解锁全集', status: true },
          { name: 'first_reward_ad', content: '优先显示激励广告', status: true },
          { name: 'distributor_name', content: '分销方', status: true },
          { name: 'playlet_title', content: '短剧', status: true },
          { name: 'chapter_title', content: '剧集名称', status: true },
          { name: 'pay_up', content: 'ARPPU值', status: true },
          { name: 'repurchase_rate', content: '复购率', status: true },
          { name: 'req_member_num', content: '注册用户总数(今日)', status: true },
          { name: 'total_member', content: '充值总人数(今日)', status: true },
          { name: 'seq_today_pay_member', content: '今日新用户充值人数', status: true },
          { name: 'recharge_amount', content: '充值总金额(今日)', status: true },
          { name: 'pay_num', content: '充值总笔数(今日)', status: true },
          { name: 'seq_today_pay_amount', content: '今日新用户充值金额', status: true },
          { name: 'seq_today_pay_num', content: '今日新用户充值笔数', status: true },
          { name: 'seq_today_pay_up', content: '今日新用户的ARPPU值', status: true },
          { name: 'start_pay_chapter', content: '收费章节', status: true },
          { name: 'pay_coin', content: '初始定价(虚拟币/集)', status: true },
          { name: 'today_member_visits', content: '今日用户访问数', status: true },
          { name: 'template_name', content: '充值模版', status: true },
          { name: 'echo_type', content: '回传通道', status: true },
          { name: 'creator', content: '创建人', status: true },
          { name: 'create_time', content: '创建时间', status: true }
        ]
      }
    ]
    const defaultColumn = {
      left: [],
      center: ['selection', 'channel_name', 'id', 'media', 'advertiser_name', 'promote_url', 'promote_link', 'ad_switch', 'player_switch', 'group_buy_switch', 'first_reward_ad', 'distributor_name', 'playlet_title', 'chapter_title', 'pay_up', 'req_member_num', 'total_member', 'seq_today_pay_member', 'recharge_amount', 'pay_num', 'repurchase_rate', 'seq_today_pay_amount', 'seq_today_pay_num', 'seq_today_pay_up', 'start_pay_chapter', 'pay_coin', 'today_member_visits', 'template_name', 'echo_type', 'creator', 'create_time'],
      right: []
    }
    const tableColums = [
      {
        label: '选择',
        prop: 'selection',
        type: 'selection'
      },
      {
        label: '渠道名称',
        prop: 'channel_name',
        minWidth: 160,
        slotScope: true
      },
      {
        label: '渠道ID',
        prop: 'id',
        minWidth: 80
      },
      {
        label: '媒体',
        prop: 'media',
        minWidth: 100
      },
      {
        label: '账户',
        prop: 'advertiser_name'
      },
      {
        label: '推广路径',
        prop: 'promote_url',
        minWidth: 200,
        slotScope: true
      },
      {
        label: '推广链接',
        prop: 'promote_link',
        minWidth: 200,
        slotScope: true
      },
      {
        label: '广告流量主',
        prop: 'ad_switch',
        minWidth: 120,
        slotScope: true
      },
      {
        label: '官方播放器组件',
        prop: 'player_switch',
        minWidth: 120,
        slotScope: true
      },
      {
        label: '拼团-解锁全集',
        prop: 'group_buy_switch',
        minWidth: 120,
        slotScope: true
      },
      {
        label: '优先显示激励广告',
        prop: 'first_reward_ad',
        minWidth: 140,
        slotScope: true
      },
      {
        label: '分销方',
        prop: 'distributor_name'
      },
      {
        label: '短剧',
        prop: 'playlet_title'
      },
      {
        label: '剧集名称',
        prop: 'chapter_title'
      },
      {
        label: 'ARPPU值',
        prop: 'pay_up',
        renderHeader: (h, { row }) => {
          return (
            <div>
              ARPPU值
              <el-tooltip class='item' effect='dark' placement='top'>
                <div slot='content' class='tooltipLine'>
                  充值总金额 / 充值总人数
                </div>
                <i class='el-icon-question' style='margin-left:5px;'></i>
              </el-tooltip>
            </div>
          )
        },
        minWidth: 120
      },
      {
        label: '复购率',
        prop: 'repurchase_rate',
        minWidth: 100,
        renderHeader: (h, { row }) => {
          return (
            <div>
              复购率
              <el-tooltip class='item' effect='dark' placement='top'>
                <div slot='content' class='tooltipLine'>
                  复冲人数 / 充值总人数
                </div>
                <i class='el-icon-question' style='margin-left:5px;'></i>
              </el-tooltip>
            </div>
          )
        }
      },
      {
        label: '注册用户总数(今日)',
        prop: 'req_member_num'
      },
      {
        label: '充值总人数(今日)',
        prop: 'total_member'
      },
      {
        label: '今日新用户充值人数',
        prop: 'seq_today_pay_member'
      },
      {
        label: '充值总金额(今日)',
        prop: 'recharge_amount'
      },
      {
        label: '充值总笔数(今日)',
        prop: 'pay_num'
      },
      {
        label: '今日新用户充值金额',
        prop: 'seq_today_pay_amount'
      },
      {
        label: '今日新用户充值笔数',
        prop: 'seq_today_pay_num'
      },
      {
        label: '今日新用户的ARPPU值',
        prop: 'seq_today_pay_up'
      },
      {
        label: '收费章节',
        prop: 'start_pay_chapter'
      },
      {
        label: '初始定价(虚拟币/集)',
        prop: 'pay_coin',
        minWidth: 90,
        slotScope: true
      },
      {
        label: '今日用户访问数',
        prop: 'today_member_visits',
        render: (h, { row }) => {
          return <span>{Number(row.today_member_visits)} </span>
        }
      },
      {
        label: '回传通道',
        prop: 'echo_type',
        render: (h, { row }) => {
          return <span>{row.echo_type == 1 ? '平台回传' : '自归因回传'} </span>
        }
      },
      {
        label: '充值模版',
        prop: 'template_name'
      },
      {
        label: '创建人',
        prop: 'creator'
      },
      {
        label: '创建时间',
        prop: 'create_time',
        minWidth: 160
      },
      {
        label: '操作',
        prop: 'zip',
        minWidth: 220,
        fixed: 'right',
        slotScope: true
      }
    ]
    return {
      tableColums,
      defaultColumn,
      defaultColumnList
    }
  }
  if (type == 2) {
    const defaultColumnList = [
      {
        content: '分组1',
        status: true,
        children: [
          { name: 'selection', content: '选择', status: true },
          { name: 'channel_name', content: '渠道名称', status: true },
          { name: 'id', content: '渠道ID', status: true },
          { name: 'promote_url', content: '推广路径', status: true },
          { name: 'promote_link', content: '推广链接', status: true },
          { name: 'ad_switch', content: '广告流量主', status: true },
          { name: 'player_switch', content: '官方播放器组件', status: true },
          { name: 'group_buy_switch', content: '拼团-解锁全集', status: true },
          { name: 'first_reward_ad', content: '优先显示激励广告', status: true },
          { name: 'distributor_name', content: '分销方', status: true },
          { name: 'playlet_title', content: '短剧', status: true },
          { name: 'chapter_title', content: '剧集名称', status: true },
          { name: 'pay_up', content: 'ARPPU值', status: true },
          { name: 'repurchase_rate', content: '复购率', status: true },
          { name: 'req_member_num', content: '注册用户总数(今日)', status: true },
          { name: 'total_member', content: '充值总人数(今日)', status: true },
          { name: 'seq_today_pay_member', content: '今日新用户充值人数', status: true },
          { name: 'recharge_amount', content: '充值总金额(今日)', status: true },
          { name: 'pay_num', content: '充值总笔数(今日)', status: true },
          { name: 'seq_today_pay_amount', content: '今日新用户充值金额', status: true },
          { name: 'seq_today_pay_num', content: '今日新用户充值笔数', status: true },
          { name: 'seq_today_pay_up', content: '今日新用户的ARPPU值', status: true },
          { name: 'start_pay_chapter', content: '收费章节', status: true },
          { name: 'pay_coin', content: '初始定价(虚拟币/集)', status: true },
          { name: 'today_member_visits', content: '今日用户访问数', status: true },
          { name: 'template_name', content: '充值模版', status: true },
          { name: 'creator', content: '创建人', status: true },
          { name: 'create_time', content: '创建时间', status: true }
        ]
      }
    ]
    const defaultColumn = {
      left: [],
      center: ['selection', 'channel_name', 'id', 'promote_url', 'promote_link', 'dy_flow_switch', 'ad_switch', 'player_switch', 'first_reward_ad', 'distributor_name', 'playlet_title', 'chapter_title', 'pay_up', 'req_member_num', 'total_member', 'seq_today_pay_member', 'recharge_amount', 'pay_num', 'repurchase_rate', 'seq_today_pay_amount', 'seq_today_pay_num', 'seq_today_pay_up', 'start_pay_chapter', 'pay_coin', 'today_member_visits', 'template_name', 'creator', 'create_time'],
      right: []
    }
    const tableColums = [
      {
        label: '选择',
        prop: 'selection',
        type: 'selection'
      },
      {
        label: '渠道名称',
        prop: 'channel_name',
        minWidth: 160,
        slotScope: true
      },
      {
        label: '渠道ID',
        prop: 'id',
        minWidth: 80
      },
      {
        label: '推广路径',
        prop: 'promote_url',
        minWidth: 200,
        slotScope: true
      },
      {
        label: '推广链接',
        prop: 'promote_link',
        minWidth: 200,
        slotScope: true
      },
      {
        label: '广告流量主',
        prop: 'ad_switch',
        minWidth: 120,
        slotScope: true
      },
      {
        label: '官方播放器组件',
        prop: 'player_switch',
        minWidth: 120,
        slotScope: true
      },
      {
        label: '拼团-解锁全集',
        prop: 'group_buy_switch',
        minWidth: 120,
        slotScope: true
      },
      {
        label: '优先显示激励广告',
        prop: 'first_reward_ad',
        minWidth: 140,
        slotScope: true
      },
      {
        label: '分销方',
        prop: 'distributor_name'
      },
      {
        label: '短剧',
        prop: 'playlet_title'
      },
      {
        label: '剧集名称',
        prop: 'chapter_title'
      },
      {
        label: 'ARPPU值',
        prop: 'pay_up',
        renderHeader: (h, { row }) => {
          return (
            <div>
              ARPPU值
              <el-tooltip class='item' effect='dark' placement='top'>
                <div slot='content' class='tooltipLine'>
                  充值总金额 / 充值总人数
                </div>
                <i class='el-icon-question' style='margin-left:5px;'></i>
              </el-tooltip>
            </div>
          )
        },
        minWidth: 120
      },
      {
        label: '复购率',
        prop: 'repurchase_rate',
        minWidth: 100,
        renderHeader: (h, { row }) => {
          return (
            <div>
              复购率
              <el-tooltip class='item' effect='dark' placement='top'>
                <div slot='content' class='tooltipLine'>
                  复冲人数 / 充值总人数
                </div>
                <i class='el-icon-question' style='margin-left:5px;'></i>
              </el-tooltip>
            </div>
          )
        }
      },
      {
        label: '注册用户总数(今日)',
        prop: 'req_member_num'
      },
      {
        label: '充值总人数(今日)',
        prop: 'total_member'
      },
      {
        label: '今日新用户充值人数',
        prop: 'seq_today_pay_member'
      },
      {
        label: '充值总金额(今日)',
        prop: 'recharge_amount'
      },
      {
        label: '充值总笔数(今日)',
        prop: 'pay_num'
      },
      {
        label: '今日新用户充值金额',
        prop: 'seq_today_pay_amount'
      },
      {
        label: '今日新用户充值笔数',
        prop: 'seq_today_pay_num'
      },
      {
        label: '今日新用户的ARPPU值',
        prop: 'seq_today_pay_up'
      },
      {
        label: '收费章节',
        prop: 'start_pay_chapter'
      },
      {
        label: '初始定价(虚拟币/集)',
        prop: 'pay_coin',
        minWidth: 90,
        slotScope: true
      },
      {
        label: '今日用户访问数',
        prop: 'today_member_visits',
        render: (h, { row }) => {
          return <span>{Number(row.today_member_visits)} </span>
        }
      },
      {
        label: '充值模版',
        prop: 'template_name'
      },
      {
        label: '创建人',
        prop: 'creator'
      },
      {
        label: '创建时间',
        prop: 'create_time',
        minWidth: 160
      },
      {
        label: '操作',
        prop: 'zip',
        minWidth: 220,
        fixed: 'right',
        slotScope: true
      }
    ]
    return {
      tableColums,
      defaultColumn,
      defaultColumnList
    }
  }
  if (type == 3) {
    const defaultColumnList = [
      {
        content: '分组1',
        status: true,
        children: [
          { name: 'selection', content: '选择', status: true },
          { name: 'channel_name', content: '渠道名称', status: true },
          { name: 'id', content: '渠道ID', status: true },
          { name: 'media', content: '媒体', status: true },
          { name: 'advertiser_name', content: '账户', status: true },
          { name: 'open_page', content: '启动页面', status: true },
          { name: 'open_data', content: '启动参数', status: true },
          { name: 'dy_flow_switch', content: '关注加群', status: true },
          { name: 'promote_url', content: '推广路径', status: true },
          { name: 'promote_link', content: '推广链接', status: true },
          { name: 'ad_switch', content: '广告流量主', status: true },
          { name: 'first_reward_ad', content: '优先显示激励广告', status: true },
          { name: 'distributor_name', content: '分销方', status: true },
          { name: 'playlet_title', content: '短剧', status: true },
          { name: 'chapter_title', content: '剧集名称', status: true },
          { name: 'pay_up', content: 'ARPPU值', status: true },
          { name: 'repurchase_rate', content: '复购率', status: true },
          { name: 'req_member_num', content: '注册用户总数(今日)', status: true },
          { name: 'total_member', content: '充值总人数(今日)', status: true },
          { name: 'seq_today_pay_member', content: '今日新用户充值人数', status: true },
          { name: 'recharge_amount', content: '充值总金额(今日)', status: true },
          { name: 'pay_num', content: '充值总笔数(今日)', status: true },
          { name: 'seq_today_pay_amount', content: '今日新用户充值金额', status: true },
          { name: 'seq_today_pay_num', content: '今日新用户充值笔数', status: true },
          { name: 'seq_today_pay_up', content: '今日新用户的ARPPU值', status: true },
          { name: 'start_pay_chapter', content: '收费章节', status: true },
          { name: 'pay_coin', content: '初始定价(虚拟币/集)', status: true },
          { name: 'today_member_visits', content: '今日用户访问数', status: true },
          { name: 'echo_type', content: '回传通道', status: true },
          { name: 'template_name', content: '充值模版', status: true },
          { name: 'creator', content: '创建人', status: true },
          { name: 'create_time', content: '创建时间', status: true }
        ]
      }
    ]
    const defaultColumn = {
      left: [],
      center: ['selection', 'channel_name', 'id', 'media', 'advertiser_name', 'promote_url', 'promote_link', 'open_page', 'open_data', 'dy_flow_switch', 'ad_switch', 'first_reward_ad', 'distributor_name', 'playlet_title', 'chapter_title', 'pay_up', 'req_member_num', 'total_member', 'seq_today_pay_member', 'recharge_amount', 'pay_num', 'repurchase_rate', 'seq_today_pay_amount', 'seq_today_pay_num', 'seq_today_pay_up', 'start_pay_chapter', 'pay_coin', 'today_member_visits', 'echo_type', 'template_name', 'creator', 'create_time'],
      right: []
    }
    const tableColums = [
      {
        label: '选择',
        prop: 'selection',
        type: 'selection'
      },
      {
        label: '渠道名称',
        prop: 'channel_name',
        minWidth: 160,
        slotScope: true
      },
      {
        label: '渠道ID',
        prop: 'id',
        minWidth: 80
      },
      {
        label: '媒体',
        prop: 'media',
        minWidth: 100
      },
      {
        label: '账户',
        prop: 'advertiser_name'
      },
      {
        label: '推广路径',
        prop: 'promote_url',
        minWidth: 200,
        slotScope: true
      },
      {
        label: '推广链接',
        prop: 'promote_link',
        minWidth: 200,
        slotScope: true
      },
      {
        label: '启动页面',
        prop: 'open_page',
        minWidth: 100,
        slotScope: true
      },
      {
        label: '启动参数',
        prop: 'open_data',
        minWidth: 100,
        slotScope: true
      },
      {
        label: '关注加群',
        prop: 'dy_flow_switch',
        slotScope: true
      },
      {
        label: '广告流量主',
        prop: 'ad_switch',
        minWidth: 120,
        slotScope: true
      },
      {
        label: '优先显示激励广告',
        prop: 'first_reward_ad',
        minWidth: 140,
        slotScope: true
      },
      {
        label: '分销方',
        prop: 'distributor_name'
      },
      {
        label: '短剧',
        prop: 'playlet_title'
      },
      {
        label: '剧集名称',
        prop: 'chapter_title'
      },
      {
        label: 'ARPPU值',
        prop: 'pay_up',
        renderHeader: (h, { row }) => {
          return (
            <div>
              ARPPU值
              <el-tooltip class='item' effect='dark' placement='top'>
                <div slot='content' class='tooltipLine'>
                  充值总金额 / 充值总人数
                </div>
                <i class='el-icon-question' style='margin-left:5px;'></i>
              </el-tooltip>
            </div>
          )
        },
        minWidth: 120
      },
      {
        label: '复购率',
        prop: 'repurchase_rate',
        minWidth: 100,
        renderHeader: (h, { row }) => {
          return (
            <div>
              复购率
              <el-tooltip class='item' effect='dark' placement='top'>
                <div slot='content' class='tooltipLine'>
                  复冲人数 / 充值总人数
                </div>
                <i class='el-icon-question' style='margin-left:5px;'></i>
              </el-tooltip>
            </div>
          )
        }
      },
      {
        label: '注册用户总数(今日)',
        prop: 'req_member_num'
      },
      {
        label: '充值总人数(今日)',
        prop: 'total_member'
      },
      {
        label: '今日新用户充值人数',
        prop: 'seq_today_pay_member'
      },
      {
        label: '充值总金额(今日)',
        prop: 'recharge_amount'
      },
      {
        label: '充值总笔数(今日)',
        prop: 'pay_num'
      },
      {
        label: '今日新用户充值金额',
        prop: 'seq_today_pay_amount'
      },
      {
        label: '今日新用户充值笔数',
        prop: 'seq_today_pay_num'
      },
      {
        label: '今日新用户的ARPPU值',
        prop: 'seq_today_pay_up'
      },
      {
        label: '收费章节',
        prop: 'start_pay_chapter'
      },
      {
        label: '初始定价(虚拟币/集)',
        prop: 'pay_coin',
        minWidth: 90,
        slotScope: true
      },
      {
        label: '今日用户访问数',
        prop: 'today_member_visits',
        render: (h, { row }) => {
          return <span>{Number(row.today_member_visits)} </span>
        }
      },
      {
        label: '回传通道',
        prop: 'echo_type',
        render: (h, { row }) => {
          return <span>{row.echo_type == 1 ? '平台回传' : '自归因回传'} </span>
        }
      },
      {
        label: '充值模版',
        prop: 'template_name'
      },
      {
        label: '创建人',
        prop: 'creator'
      },
      {
        label: '创建时间',
        prop: 'create_time',
        minWidth: 160
      },
      {
        label: '操作',
        prop: 'zip',
        minWidth: 220,
        fixed: 'right',
        slotScope: true
      }
    ]
    return {
      tableColums,
      defaultColumn,
      defaultColumnList
    }
  }
  if (type == 4) {
    const defaultColumnList = [
      {
        content: '分组1',
        status: true,
        children: [
          { name: 'selection', content: '选择', status: true },
          { name: 'channel_name', content: '渠道名称', status: true },
          { name: 'id', content: '渠道ID', status: true },
          { name: 'purpose', content: '用途', status: true },
          { name: 'open_page', content: '启动页面', status: true },
          { name: 'open_data', content: '启动参数', status: true },
          { name: 'dy_flow_switch', content: '关注加群', status: true },
          { name: 'promote_url', content: '推广路径', status: true },
          { name: 'promote_link', content: '推广链接', status: true },
          { name: 'ad_switch', content: '广告流量主', status: true },
          { name: 'first_reward_ad', content: '优先显示激励广告', status: true },
          { name: 'distributor_name', content: '分销方', status: true },
          { name: 'playlet_title', content: '短剧', status: true },
          { name: 'chapter_title', content: '剧集名称', status: true },
          { name: 'pay_up', content: 'ARPPU值', status: true },
          { name: 'repurchase_rate', content: '复购率', status: true },
          { name: 'req_member_num', content: '注册用户总数(今日)', status: true },
          { name: 'total_member', content: '充值总人数(今日)', status: true },
          { name: 'seq_today_pay_member', content: '今日新用户充值人数', status: true },
          { name: 'recharge_amount', content: '充值总金额(今日)', status: true },
          { name: 'pay_num', content: '充值总笔数(今日)', status: true },
          { name: 'seq_today_pay_amount', content: '今日新用户充值金额', status: true },
          { name: 'seq_today_pay_num', content: '今日新用户充值笔数', status: true },
          { name: 'seq_today_pay_up', content: '今日新用户的ARPPU值', status: true },
          { name: 'start_pay_chapter', content: '收费章节', status: true },
          { name: 'pay_coin', content: '初始定价(虚拟币/集)', status: true },
          { name: 'today_member_visits', content: '今日用户访问数', status: true },
          { name: 'template_name', content: '充值模版', status: true },
          { name: 'creator', content: '创建人', status: true },
          { name: 'create_time', content: '创建时间', status: true }
        ]
      }
    ]
    const defaultColumn = {
      left: [],
      center: ['selection', 'channel_name', 'id', 'purpose', 'promote_url', 'promote_link', 'open_page', 'open_data', 'dy_flow_switch', 'ad_switch', 'first_reward_ad', 'distributor_name', 'playlet_title', 'chapter_title', 'pay_up', 'req_member_num', 'total_member', 'seq_today_pay_member', 'recharge_amount', 'repurchase_rate', 'pay_num', 'seq_today_pay_amount', 'seq_today_pay_num', 'seq_today_pay_up', 'start_pay_chapter', 'pay_coin', 'today_member_visits', 'template_name', 'creator', 'create_time'],
      right: []
    }
    const tableColums = [
      {
        label: '选择',
        prop: 'selection',
        type: 'selection'
      },
      {
        label: '渠道名称',
        prop: 'channel_name',
        minWidth: 160,
        slotScope: true
      },
      {
        label: '渠道ID',
        prop: 'id',
        minWidth: 80
      },
      {
        label: '用途',
        prop: 'purpose',
        minWidth: 160
      },
      {
        label: '推广路径',
        prop: 'promote_url',
        minWidth: 200,
        slotScope: true
      },
      {
        label: '推广链接',
        prop: 'promote_link',
        minWidth: 200,
        slotScope: true
      },
      {
        label: '启动页面',
        prop: 'open_page',
        minWidth: 100,
        slotScope: true
      },
      {
        label: '启动参数',
        prop: 'open_data',
        minWidth: 100,
        slotScope: true
      },
      {
        label: '关注加群',
        prop: 'dy_flow_switch',
        slotScope: true
      },
      {
        label: '广告流量主',
        prop: 'ad_switch',
        minWidth: 120,
        slotScope: true
      },
      {
        label: '优先显示激励广告',
        prop: 'first_reward_ad',
        minWidth: 140,
        slotScope: true
      },
      {
        label: '分销方',
        prop: 'distributor_name'
      },
      {
        label: '短剧',
        prop: 'playlet_title'
      },
      {
        label: '剧集名称',
        prop: 'chapter_title'
      },
      {
        label: 'ARPPU值',
        prop: 'pay_up',
        renderHeader: (h, { row }) => {
          return (
            <div>
              ARPPU值
              <el-tooltip class='item' effect='dark' placement='top'>
                <div slot='content' class='tooltipLine'>
                  充值总金额 / 充值总人数
                </div>
                <i class='el-icon-question' style='margin-left:5px;'></i>
              </el-tooltip>
            </div>
          )
        },
        minWidth: 120
      },
      {
        label: '复购率',
        prop: 'repurchase_rate',
        minWidth: 100,
        renderHeader: (h, { row }) => {
          return (
            <div>
              复购率
              <el-tooltip class='item' effect='dark' placement='top'>
                <div slot='content' class='tooltipLine'>
                  复冲人数 / 充值总人数
                </div>
                <i class='el-icon-question' style='margin-left:5px;'></i>
              </el-tooltip>
            </div>
          )
        }
      },
      {
        label: '注册用户总数(今日)',
        prop: 'req_member_num'
      },
      {
        label: '充值总人数(今日)',
        prop: 'total_member'
      },
      {
        label: '今日新用户充值人数',
        prop: 'seq_today_pay_member'
      },
      {
        label: '充值总金额(今日)',
        prop: 'recharge_amount'
      },
      {
        label: '充值总笔数(今日)',
        prop: 'pay_num'
      },
      {
        label: '今日新用户充值金额',
        prop: 'seq_today_pay_amount'
      },
      {
        label: '今日新用户充值笔数',
        prop: 'seq_today_pay_num'
      },
      {
        label: '今日新用户的ARPPU值',
        prop: 'seq_today_pay_up'
      },
      {
        label: '收费章节',
        prop: 'start_pay_chapter'
      },
      {
        label: '初始定价(虚拟币/集)',
        prop: 'pay_coin',
        minWidth: 90,
        slotScope: true
      },
      {
        label: '今日用户访问数',
        prop: 'today_member_visits',
        render: (h, { row }) => {
          return <span>{Number(row.today_member_visits)} </span>
        }
      },
      {
        label: '充值模版',
        prop: 'template_name'
      },
      {
        label: '创建人',
        prop: 'creator'
      },
      {
        label: '创建时间',
        prop: 'create_time',
        minWidth: 160
      },
      {
        label: '操作',
        prop: 'zip',
        minWidth: 220,
        fixed: 'right',
        slotScope: true
      }
    ]
    return {
      tableColums,
      defaultColumn,
      defaultColumnList
    }
  }
}
